import request from '@/utils/request'

/**
 * 获取会员列表
 * @param {*} params 
 * @returns 
 */
export function memberList(params = {}) {
    return request({
        url: '/memberList',
        method: 'get',
        params
    })
}

/**
 * 添加会员账户
 * @param {id,account} data 
 * @returns 
 */
export function addMemberAccount(data = {}) {
    return request({
        url: '/addMemberAccount',
        method: 'post',
        data
    })
}
/**
 * 会员审核
 * @param {*} data 
 * @returns 
 */
export function memberReview(data = {}) {
    return request({
        url: '/memberReview',
        data,
        method: 'post'
    })
}

/**
 * 获取车队长账户余额
 * @param sub_account 
 * @returns 
 */
export function getAccountMemberMoney(params = {}) {
    return request({
        url: '/getAccountMemberMoney',
        method: 'get',
        params
    })
}

